#include "stdafx.h"
#include "MsgHandlerLgc.h"



MsgHandlerLgc::MsgHandlerLgc()
:m_wpSvcHost(NULL), m_wpSvcDB(NULL), m_wpSvcLgc(NULL)
{

}

MsgHandlerLgc::~MsgHandlerLgc()
{

}

bool
MsgHandlerLgc::initialize(IMsgHandlerInitData* data)
{
	MsgHandlerInitDataLgc* d = dynamic_cast<MsgHandlerInitDataLgc*>(data);

	if (d)
	{
		m_wpSvcHost = d->wpSvcHost;
		m_wpSvcDB = d->wpSvcDB;
		m_wpSvcLgc = d->wpSvcLgc;
		return true;
	}
	else
		return false;
}

Service* MsgHandlerLgc::getSvcHost() const
{
	return m_wpSvcHost;
}

Service* MsgHandlerLgc::getSvcDB() const
{
	return m_wpSvcDB;
}

Service* MsgHandlerLgc::getSvcLgc() const
{
	return m_wpSvcLgc;
}